﻿@model CSCSN.WebApplication.Models.UserDataVM

@{
    ViewData["Title"] = "Index";
    Layout = "_LayoutNavigationBar";
}
<style>
    .Imges {
        width: 64px;
        height: 64px;
        border-radius: 50%;
    }

    .Photo {
        display: inline-block;
        vertical-align: top;
        position: relative;
        cursor: pointer;
        width: 64px;
        height: 64px;
        border-radius: 50%;
        overflow: hidden;
    }

    .top_content {
        display: inline-block;
        margin-left: 16px;
        width: 200px;
        font-size: 20px;
        font-weight: 700;
    }

    .down_content {
        height: 741px;
    }
</style>
<div class="right_content_title">
    <span class="right_content_title_text">我的信息</span>
</div>
<div class="right_content_Form">
    <div class="From_content">
        <div class="Photo">
            <img src="@Model.HeadPortrait" class="Imges" />
        </div>
        <div class="top_content">
            <span class="top_content_Name">@Html.DisplayFor(model => model.Name, ViewData["Name"])</span>
            <span class="top_content_UserName">@ViewData["UserName"]</span>
        </div>
        <hr />
        <div class="down_content">
            <dl class="row">

                <dt class="col-sm-2">
                    <label asp-for="Hobby" class="control-label">个性签名:</label>
                </dt>
                <dd class="col-sm-10">
                    @Html.DisplayFor(model => model.Hobby)
                </dd>
                <dt class="col-sm-2">
                    <label asp-for="Birthday" class="control-label">出生日期:</label>
                </dt>
                <dd class="col-sm-10">
                    @Html.DisplayFor(model => model.Birthday)
                </dd>
                <dt class="col-sm-2">
                    <label asp-for="RealName" class="control-label">真实姓名:</label>
                </dt>
                <dd class="col-sm-10">
                    @Html.DisplayFor(model => model.RealName)
                </dd>
                <dt class="col-sm-2">
                    <label asp-for="RealName" class="control-label">电话:</label>
                </dt>
                <dd class="col-sm-10">
                    @Html.DisplayFor(model => model.Phone)
                </dd>
                <dt class="col-sm-2">
                    <label asp-for="RealName" class="control-label">性别:</label>
                </dt>
                <dd class="col-sm-10">
                    @if (Model.Sex == true)
                    {
                        <i class="iconfont ">&#xe628;</i>
                    }
                    else
                    {
                        <i class="iconfont ">&#xe638;</i>
                    }
                </dd>
                <dt class="col-sm-2">
                    <label asp-for="College" class="control-label">学院:</label>
                </dt>
                <dd class="col-sm-10">
                    @if (Model.College == "0")
                    {
                        <span>电信</span>
                    }
                    else if (Model.College == "1")
                    {
                        <span>机电</span>
                    }
                    else if (Model.College == "2")
                    {
                        <span>汽车</span>
                    }
                    else
                    {
                        <span>贸旅</span>
                    }
                </dd>
                <dt class="col-sm-2">
                    <label asp-for="ClassName" class="control-label">专业:</label>
                </dt>
                <dd class="col-sm-10">
                    @Html.DisplayFor(model => model.ClassName)
                </dd>
                <dt class="col-sm-2">
                    <label asp-for="StudentNumber" class="control-label">学号:</label>
                </dt>
                <dd class="col-sm-10">
                    @Html.DisplayFor(model => model.StudentNumber)
                </dd>
            </dl>
        </div>
    </div>
</div>